﻿<%@ Page Title="餐馆详情" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    Inherits="Wjtour.Web.Front.restdetail" %>

<%@ Import Namespace="Wjtour.Domain" %>
<%@ Import Namespace="Wjtour.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script language="javascript">
        $(document).ready(function () {
            $('#myTab a:first').tab('show');
            $('#mytab a').click(function (e) {
                e.preventDefault();
                $(this).tab('show');
            });
        });

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <div class="ipage scenicpage">
        <!-- 浮动块 -->
        <div class="scenicleft scenicdetailleft">
            <%if (data != null)
              { %>
            <div class="path dpath">您所在的位置：<a href="/">首页</a> &gt; <a href="travelindex.aspx">旅游指南</a> &gt; 地方美食 &gt; 特色餐馆 &gt; <%=data.resturantname %> </div>
            <h1><%=data.resturantname %></h1>
            <div class="scenicinfo">
                <%if (!string.IsNullOrEmpty(data.img))
                  { %>
                <img src="<%=data.img %>" />
                <%}
                  else
                  { %>
                <img src="css/images/tmp07.png" />
                <%} %>
                <ul>
                    <li>人均消费：<span>￥<%=data.averagecosume %></span></li>
                    <li>容纳人数：<%=data.holdmans %>人</li>
                    <li>开业时间：<%=data.opentime %>年</li>
                    <li>咨询电话：<%=data.contactphone %></li>
                    <li>酒店地址：<%=data.address %></li>
                </ul>
            </div>
            <div class="clear" style="height: 20px;"></div>
            <!-- 详细内容 -->
            <ul class="nav nav-tabs" id="myTab">
                <li class="active"><a href="#scenicwords" data-toggle="tab">餐馆介绍</a></li>
                <li><a href="#scenictraffic" data-toggle="tab">交通指南</a></li>
            </ul>

            <div class="tab-content">
                <!--tab1-->
                <div class="tab-pane active" id="scenicwords">
                    <%=data.introduce %>
                </div>
                <!--tab2-->
                <div class="tab-pane" id="scenictraffic">
                    <!-- 地图 -->
                    <div id="maps">
                        <iframe width="650" height="323" scrolling="no" frameborder="0" src="map.aspx?type=rest&id=<%=id %>"></iframe>
                    </div>
                    <div class="traffic">
                        <%=data.trafficguide %>
                    </div>
                </div>
            </div>
            <%} %>
        </div>
        <!-- 侧面-->
        <div class="scenicright travelsright">
            <img src="css/images/title01.png" />
            <div class="title"></div>
            <ul class="arlist floatlist">
                <%
                    if (caiyao != null && caiyao.Count > 0)
                    {
                        for (int i = 0; i < caiyao.Count; i++)
                        {
                            var c = caiyao[i];
                %>
                <li><span><%=(i+1) %></span><a href="fooddetail.aspx?id=<%=c.id %>" target="_blank"><%=Utility.CutString(c.title,9,false) %></a></li>

                <%}
                    }%>
            </ul>

            <img src="css/images/title02.png" style="margin-top: 15px;" />
            <div class="title"></div>
            <%
                if (xiaochi != null && xiaochi.Count > 0)
                {
                    var firstxiaochi = xiaochi.First();
            %>
            <div class="best">
                <%if (!string.IsNullOrEmpty(firstxiaochi.logo))
                  { %>
                <img src="<%=firstxiaochi.logo %>" />
                <%}
                  else
                  { %>
                <img src="css/images/tmp13.png" />
                <%} %>
                <div>
                    <h4><%=Utility.CutString(firstxiaochi.title,9,false) %></h4>
                    <span><%=Utility.CutString(firstxiaochi.introduce,11,true) %>[<a href="fooddetail.aspx?id=<%=firstxiaochi.id %>" target="_blank">[详情</a>]</span>
                </div>
            </div>
            <ul class="arlist">
                <%for (int i = 1; i < xiaochi.Count; i++)
                  {
                      var xc = xiaochi[i];
                %>
                <li><span></span><a href="fooddetail.aspx?id=<%=xc.id %>" target="_blank"><%=Utility.CutString(xc.title,9,false) %></a></li>
                <%} %>
            </ul>
            <%} %>

            <img src="css/images/title03.png" style="margin-top: 15px;" />
            <div class="title"></div>
            <%
                if (resturants != null && resturants.Count > 0)
                {
                    var firstresturant = resturants.First();
            %>
            <div class="best">
                <%if (!string.IsNullOrEmpty(firstresturant.img))
                  { %>
                <img src="<%=firstresturant.img %>" />
                <%}
                  else
                  { %>
                <img src="css/images/tmp13.png" />
                <%} %>
                <div>
                    <h4><%=Utility.CutString(firstresturant.resturantname,9,false) %></h4>
                    <span><%=Utility.CutString(Utility.StripHtml(firstresturant.introduce),11,true) %>[<a href="restdetail.aspx?id=<%=firstresturant.id %>" target="_blank">[详情</a>]</span>
                </div>
            </div>
            <ul class="arlist">
                <%for (int i = 1; i < resturants.Count; i++)
                  {
                      var resturant = resturants[i];
                %>
                <li><span></span><a href="restdetail.aspx?id=<%=resturant.id %>" target="_blank"><%=Utility.CutString(resturant.resturantname,9,false) %></a></li>
                <%} %>
            </ul>
            <%} %>
        </div>
        <div class="clear"></div>
    </div>
</asp:Content>
